package com.zx.service.impl.user;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zx.dao.user.UserMapper;
import com.zx.model.user.User;
import com.zx.service.user.UserService;

/**
 * 
 * @author zx
 *
 */
@Service
public class UserServiceImpl implements UserService {
	@Autowired
	private UserMapper userMapper;

    @Override
	public User selectByPrimaryKey(Long id) {
		return userMapper.selectByPrimaryKey(id);
	}

    @Override
    public List<String> getPermissionsByUserid(String userId) {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public User selectUserInfoByUserId(String userId) {
        return userMapper.selectByUserId(userId);
    }

    @Override
    public List<String> getRolesByUserid(String userId) {
        // TODO Auto-generated method stub
        return null;
    }

}